﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="合同号.aspx.cs" Inherits="syc.js.autocomplete.tests.合同号" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
<link rel="stylesheet" href="../jquery.autocomplete.css" type="text/css" />
<script src="../lib/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="../lib/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="../jquery.autocomplete.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
    $("#txtSearch").autocomplete("m.aspx", { 
        minChars: 0,
        max: 5,
        autoFill: true,
        mustMatch: true,
        matchContains: true,
        scrollHeight: 220,
        formatItem: function(data, i, total) {
            return "<I>" + data[0] + "</I>";
        },
        formatMatch: function(data, i, total) {
            return data[0];
        },
        formatResult: function(data) {
            return data[0];
        } 
    });  
    });      
  </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input id="txtSearch" type="text" />
    </div>
    </form>
</body>
</html>
